import request from '@/utils/request'

// 查询调查问卷名称列表
export function listQueForm(query) {
  return request({
    url: '/secondVitim/queForm/list',
    method: 'get',
    params: query
  })
}

// 查询调查问卷名称详细
export function getQueForm(id) {
  return request({
    url: '/secondVitim/queForm/' + id,
    method: 'get'
  })
}

// 新增调查问卷名称
export function addQueForm(data) {
  return request({
    url: '/secondVitim/queForm',
    method: 'post',
    data: data
  })
}

// 修改调查问卷名称
export function updateQueForm(data) {
  return request({
    url: '/secondVitim/queForm',
    method: 'put',
    data: data
  })
}

// 删除调查问卷名称
export function delQueForm(id) {
  return request({
    url: '/secondVitim/queForm/' + id,
    method: 'delete'
  })
}

// 用户文件状态
export function changeStatus(id, status) {
  const data = {
    id,
    status
  }
  return request({
    url: '/secondVitim/queForm/changeStatus',
    method: 'put',
    data: data
  })
}
